package com.codeworker.validationdemo.bean;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * Description: 学生集合类
 *
 * @author code-worker
 * @date 2021/09/25 10:37
 */
@Data
public class Students {
    @Valid
    @NotEmpty(message = "学生信息不能为空")
    private List<Student> students;
}
